class CreateGroups < ActiveRecord::Migration
  def self.up
    create_table :groups do |t|
      t.column :name, :string
      t.column :user_id, :integer
    end

    add_column :images, :group_id, :integer
  end

  def self.down
    drop_table :groups
    remove_column :images, :group_id
  end
end
